﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace SharpSphinx.Util.Machlearn
{
    public class OVector : ICloneable , ISerializable
    {
        protected double[] values; 


        public OVector(double value)
            : this(new double[]{value})
        {
            

        }

        public OVector(double[] values)
        {
            this.values = values;
        }

        public double[] Values
        {

            get
            {
                return values;
            }
        }


        public int Dimension
        {
           get {
               // return 
               }

        }

        public override bool Equals(object obj)
        {
            return obj is OVector && Array.Equals(values, ((OVector)obj).values); 
        }


        public override int GetHashCode()
        {
            return values.GetHashCode();
        }

        public override string ToString()
        {

            return values.ToString();
        }


    }
}
